#include "./include/hwconfig.h"

void hwconfig_setValue32(UINT32 regAddr,UINT32 val){
    HWREG32(regAddr) |=val;
}

void hwconfig_setValue16(UINT32 regAddr,UINT16 val){
    HWREG16(regAddr) |=val;
}

void hwconfig_setValue8(UINT32 regAddr,UINT8 val){
    HWREG8(regAddr) |=val;
}

void hwconfig_getValue32(UINT32 regAddr,UINT32 *val){
    if(val)
        *val= HWREG32(regAddr);
}

void hwconfig_getValue16(UINT32 regAddr,UINT16 *val){
    if(val)
        *val= HWREG16(regAddr);
}

void hwconfig_getValue8(UINT32 regAddr,UINT8 *val){
     if(val)
        *val= HWREG8(regAddr);
}   